import 'package:ceramics/extensions/ab_widget_extensions.dart';
import 'package:ceramics/styles/ab_styles.dart';
import 'package:ceramics/widgets/ab_elevate_button.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class ABAgreeDialog extends StatelessWidget {
  const ABAgreeDialog({super.key});

  @override
  Widget build(BuildContext context) {
    return Dialog(
      child: Column(
        mainAxisSize: MainAxisSize.min,
        children:[
          Image.asset('images/logo.webp', width: 100).borderRadius(20),
          const SizedBox(height: 20),
          Text('ClayArt'.tr, style: ABStyles.tsDarkPink20Bold),
          const SizedBox(height: 20),
          Text('By using our App you agree with our Term of Use and Privacy Policy.'.tr,style: const TextStyle(wordSpacing: 4)),
          const SizedBox(height: 20),
          ABElevateButton(child: Text('Agree And Continue'.tr,style: const TextStyle(fontFamily: 'RacingSansOne')), onPressed: ()=>Get.back(result: true)),
          TextButton(onPressed: ()=>Get.back(result: false), child: const Text('Cancel',style: ABStyles.tsNormalBlack15))
        ]
      ).paddingSymmetric(horizontal: 20,vertical: 10),
    );
  }
}
